********************************************
*****************OVERVIEW*******************
********************************************
Comparative Political Studies (CPS) Dataverse Replication materials: "Does Compulsory Voting Affect How Voters Choose? A Test Using a Combined Conjoint and Regression Discontinuity Analysis," by Shane P. Singh 

Below is a description of the data files, the analysis files, and the codebook, as well as step-by-step instructions for the replication of the content of all figures and associated discussion in the article and Supporting Information.




********************************************
***********COMPUTE ENVIRONMENT**************
********************************************
Operating system:						Mac OS X El Capitan (3.5 GHz Intel Core i7; 32 GB 1600 MHz DDR3)
Statistical software versions					Stata/MP 13.1 for Mac (64-bit Intel) (Revision 16 Dec 2016)
								R 4.1.0 for macOS
								RStudio 1.4.1717 for macOSEstimated run time for all analyses				45 minutesPackages used in analysis						Stata	
									COEFPLOT (http://repec.sowi.unibe.ch/stata/coefplot/getting-started.html) 
									GRC1LEG (http://www.stata.com/users/vwiggins)
									RDBWSELECT (https://journals.sagepub.com/doi/abs/10.1177/1536867X1401400413)
									RDDENSITY (https://journals.sagepub.com/doi/10.1177/1536867X1801800115)
									LPDENSITY (https://nppackages.github.io/references/Cattaneo-Jansson-Ma_2021_JSS.pdf)
								R
									DEVTOOLS (https://www.r-project.org/nosvn/pandoc/devtools.html)
									CJPOWR (https://github.com/m-freitag/cjpowR)



********************************************
**********REPLICATING THE ANALYSIS**********
********************************************

************
**Necessary Files
************
Argentina_2019_Gen_Elec_Survey_CPS.dta				Original survey data collected following the 2019 general election in Argentina 
Argentina_2019_Gen_Elec_Survey_Conjoint_CPS.dta			Data from a conjoint experiment embedded in a survey conducted following the 2019 general election in Argentina 
Replication, Main Text.do						Contains code for reproducing the analyses and figures in the main textReplication, Supporting Information.do				Contains code for reproducing the analyses and figures in the Supporting Information
Replication, Power Analysis.R					Contains code for the power analyses detailed in the Supporting Information and creates the data for Figure SI24


************
**Instructions and Further Description
************
1. Download all of the necessary file to the same folder.

2. Set your working directory in Stata to the folder in which you stored all of the necessary files.

3. Replicate the analyses in the main text. Open and run “Replication, Main Text.do”. The included code will reproduce the content shown in the figures displayed in the main text. It also provides code for analyses behind claims made in the main text. 

4. Conduct the power analyses discussed in the Supporting Information. Open and run “Replication, Power Analysis.R”. The included code will conduct analyses behind claims made in the Supporting Information regarding statistical power. It will also create data used in the next step in the production of Figure SI24. Save these data to your the same folder as the other necessary files. 

5. Replicate the analyses in the Supporting Information. Open and run “Replication, Supporting Information.do”. The included code will reproduce the content shown in the figures displayed in the Supporting Information. It also provides code for analyses behind claims made in the Supporting Information, with the exception of those pertaining to the power analyses. 



********************************************
****************OTHER FILES*****************
********************************************
Codebook.pdf						Describes each variable used in the analyses and gives information on coding and measurement 
readme.txt						This file


********************************************
************REPLICATION CONTACT*************
********************************************
Shane P. Singh
singh@uga.edu
www.shanepsingh.com
https://scholar.google.com/citations?hl=en&user=GZ2ePRkAAAAJ




